home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 43 6c 61 73 73 20 |ject: Re|: Class |
|00000080| 70 72 6f 62 6c 65 6d 0a | 44 61 74 65 3a 20 32 39 |problem.|Date: 29|
|00000090| 20 46 65 62 20 31 39 39 | 36 20 31 34 3a 32 35 3a | Feb 199|6 14:25:|
|000000a0| 34 39 20 47 4d 54 0a 4f | 72 67 61 6e 69 7a 61 74 |49 GMT.O|rganizat|
|000000b0| 69 6f 6e 3a 20 44 69 67 | 69 74 61 6c 20 45 71 75 |ion: Dig|ital Equ|
|000000c0| 69 70 6d 65 6e 74 20 43 | 6f 72 70 6f 72 61 74 69 |ipment C|orporati|
|000000d0| 6f 6e 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |on.Messa|ge-ID: <|
|000000e0| 34 68 34 64 31 64 24 39 | 6f 68 40 6e 6e 74 70 64 |4h4d1d$9|oh@nntpd|
|000000f0| 32 2e 63 78 6f 2e 64 65 | 63 2e 63 6f 6d 3e 0a 52 |2.cxo.de|c.com>.R|
|00000100| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 67 76 36 |eference|s: <4gv6|
|00000110| 6a 32 24 6b 6c 76 40 6e | 65 77 73 2d 65 32 62 2e |j2$klv@n|ews-e2b.|
|00000120| 67 6e 6e 2e 63 6f 6d 3e | 0a 4e 4e 54 50 2d 50 6f |gnn.com>|.NNTP-Po|
|00000130| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 70 65 6f 31 |sting-Ho|st: peo1|
|00000140| 30 31 32 5f 70 6f 72 74 | 31 2e 70 65 6f 2e 64 65 |012_port|1.peo.de|
|00000150| 63 2e 63 6f 6d 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |c.com.Mi|me-Versi|
|00000160| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000170| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|00000180| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|00000190| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001a0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001b0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001c0| 69 6c 6c 61 20 31 2e 32 | 4e 20 28 57 69 6e 64 6f |illa 1.2|N (Windo|
|000001d0| 77 73 3b 20 49 3b 20 31 | 36 62 69 74 29 0a 54 6f |ws; I; 1|6bit).To|
|000001e0| 3a 20 50 4c 61 79 74 6f | 6e 40 67 6e 6e 2e 63 6f |: PLayto|n@gnn.co|
|000001f0| 6d 0a 0a 50 4c 61 79 74 | 6f 6e 40 67 6e 6e 2e 63 |m..PLayt|on@gnn.c|
|00000200| 6f 6d 20 28 50 61 6d 20 | 4c 61 79 74 6f 6e 29 20 |om (Pam |Layton) |
|00000210| 77 72 6f 74 65 3a 0a 3e | 48 69 2e 20 20 49 27 6d |wrote:.>|Hi. I'm|
|00000220| 20 6e 65 77 20 61 74 20 | 43 2b 2b 20 70 72 6f 67 | new at |C++ prog|
|00000230| 72 61 6d 6d 69 6e 67 2e | 20 20 49 20 61 6d 20 77 |ramming.| I am w|
|00000240| 6f 72 6b 69 6e 67 20 6f | 6e 20 61 20 70 72 6f 67 |orking o|n a prog|
|00000250| 72 61 6d 20 28 74 68 61 | 74 20 0a 3e 69 73 20 74 |ram (tha|t .>is t|
|00000260| 6f 20 62 65 20 63 6f 6d | 70 6c 65 74 65 20 62 79 |o be com|plete by|
|00000270| 20 32 2f 32 38 2f 39 36 | 29 2e 20 20 49 20 68 61 | 2/28/96|). I ha|
|00000280| 76 65 20 74 6f 20 68 61 | 76 65 20 6f 6e 65 20 63 |ve to ha|ve one c|
|00000290| 6c 61 73 73 20 6f 66 20 | 6e 61 6d 65 20 0a 3e 69 |lass of |name .>i|
|000002a0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |nformati|on, and |
|000002b0| 6f 6e 65 20 63 6c 61 73 | 73 20 6f 66 20 61 64 64 |one clas|s of add|
|000002c0| 72 65 73 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ress inf|ormation|
|000002d0| 2e 20 20 49 20 68 61 76 | 65 20 61 20 6d 65 6e 75 |. I hav|e a menu|
|000002e0| 20 0a 3e 74 6f 20 63 68 | 6f 6f 73 65 20 77 68 65 | .>to ch|oose whe|
|000002f0| 74 68 65 72 20 74 6f 20 | 61 64 64 2c 20 64 69 73 |ther to |add, dis|
|00000300| 70 6c 61 79 2c 20 72 65 | 6d 6f 76 65 20 6f 72 20 |play, re|move or |
|00000310| 65 78 69 74 2e 20 20 49 | 20 68 61 76 65 20 6d 6f |exit. I| have mo|
|00000320| 73 74 20 6f 66 20 0a 3e | 74 68 65 20 63 6f 64 65 |st of .>|the code|
|00000330| 20 77 72 69 74 74 65 6e | 2e 20 20 4d 79 20 70 72 | written|. My pr|
|00000340| 6f 62 6c 65 6d 3a 20 20 | 49 20 75 73 65 20 42 6f |oblem: |I use Bo|
|00000350| 72 6c 61 6e 64 20 43 2b | 2b 20 76 65 72 2e 20 33 |rland C+|+ ver. 3|
|00000360| 2e 31 2e 20 20 49 74 20 | 0a 3e 6b 65 65 70 73 20 |.1. It |.>keeps |
|00000370| 67 69 76 69 6e 67 20 6d | 65 20 61 6e 20 65 72 72 |giving m|e an err|
|00000380| 6f 72 20 73 61 79 69 6e | 67 20 22 49 6c 6c 65 67 |or sayin|g "Illeg|
|00000390| 61 6c 20 53 74 72 75 63 | 74 75 72 65 20 4f 70 65 |al Struc|ture Ope|
|000003a0| 72 61 74 69 6f 6e 22 20 | 6f 6e 20 0a 3e 74 68 65 |ration" |on .>the|
|000003b0| 73 65 20 74 77 6f 20 6c | 69 6e 65 73 3a 0a 3e 20 |se two l|ines:.> |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003d0| 20 63 69 6e 20 3e 3e 20 | 61 64 64 72 2e 7a 69 70 | cin >> |addr.zip|
|000003e0| 3b 0a 3e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.> | |
|000003f0| 20 20 20 20 20 63 69 6e | 20 3e 3e 20 61 64 64 72 | cin| >> addr|
|00000400| 2e 70 68 6f 6e 65 3b 0a | 3e 0a 3e 42 6f 74 68 20 |.phone;.|>.>Both |
|00000410| 6f 66 20 74 68 65 73 65 | 20 66 69 65 6c 64 73 20 |of these| fields |
|00000420| 61 72 65 20 6c 69 73 74 | 65 64 20 77 69 74 68 69 |are list|ed withi|
|00000430| 6e 20 6d 79 20 61 64 64 | 72 65 73 73 20 63 6c 61 |n my add|ress cla|
|00000440| 73 73 2e 20 20 49 20 68 | 61 76 65 20 69 74 20 0a |ss. I h|ave it .|
|00000450| 3e 6c 69 73 74 65 64 20 | 61 73 3a 0a 3e 20 20 20 |>listed |as:.> |
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6c 61 | | cla|
|00000470| 73 73 20 61 64 64 72 5f | 64 61 74 61 3a 70 75 62 |ss addr_|data:pub|
|00000480| 6c 69 63 20 6e 61 6d 65 | 5f 64 61 74 61 0a 3e 20 |lic name|_data.> |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|000004a0| 0a 3e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.> | |
|000004b0| 20 20 20 70 75 62 6c 69 | 63 3a 0a 3e 20 20 20 20 | publi|c:.> |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004d0| 20 63 68 61 72 20 73 74 | 72 65 65 74 5b 32 35 5d | char st|reet[25]|
|000004e0| 3b 0a 3e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.> | |
|000004f0| 20 20 20 20 20 20 20 20 | 63 68 61 72 20 63 69 74 | |char cit|
|00000500| 79 5b 31 35 5d 3b 0a 3e | 20 20 20 20 20 20 20 20 |y[15];.>| |
|00000510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 68 61 | | cha|
|00000520| 72 20 73 74 61 74 65 5b | 33 5d 3b 0a 3e 20 20 20 |r state[|3];.> |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000540| 20 20 69 6e 74 20 7a 69 | 70 5b 31 31 5d 3b 0a 3e | int zi|p[11];.>|
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000560| 20 20 20 20 20 69 6e 74 | 20 70 68 6f 6e 65 5b 31 | int| phone[1|
|00000570| 30 5d 3b 0a 3e 20 20 20 | 20 20 20 20 20 20 20 20 |0];.> | |
|00000580| 20 20 20 20 20 20 7d 61 | 64 64 72 3b 0a 3e 0a 3e | }a|ddr;.>.>|
|00000590| 43 61 6e 20 73 6f 6d 65 | 6f 6e 65 20 70 6c 65 61 |Can some|one plea|
|000005a0| 73 65 20 74 65 6c 6c 20 | 6d 65 20 77 68 61 74 20 |se tell |me what |
|000005b0| 69 73 20 77 72 6f 6e 67 | 20 77 69 74 68 20 74 68 |is wrong| with th|
|000005c0| 69 73 20 70 69 63 74 75 | 72 65 3f 20 20 49 20 0a |is pictu|re? I .|
|000005d0| 3e 61 70 70 72 65 63 69 | 61 74 65 20 69 74 2e 0a |>appreci|ate it..|
|000005e0| 3e 0a 0a 54 68 69 73 20 | 72 65 70 6c 79 20 69 73 |>..This |reply is|
|000005f0| 20 6d 61 79 62 65 20 61 | 20 6c 69 74 74 6c 65 20 | maybe a| little |
|00000600| 6c 61 74 65 20 66 6f 72 | 20 79 6f 75 72 20 70 72 |late for| your pr|
|00000610| 6f 6a 65 63 74 2c 20 62 | 75 74 20 49 20 64 69 64 |oject, b|ut I did|
|00000620| 6e 27 74 20 73 65 65 20 | 69 74 20 0a 75 6e 74 69 |n't see |it .unti|
|00000630| 6c 20 74 6f 64 61 79 2e | 0a 0a 54 68 65 20 70 72 |l today.|..The pr|
|00000640| 6f 62 6c 65 6d 20 69 73 | 20 74 68 61 74 20 79 6f |oblem is| that yo|
|00000650| 75 20 61 72 65 20 74 72 | 79 69 6e 67 20 74 6f 20 |u are tr|ying to |
|00000660| 68 61 76 65 20 74 68 65 | 20 3e 3e 20 6f 70 65 72 |have the| >> oper|
|00000670| 61 74 6f 72 20 61 63 63 | 65 70 74 20 69 6e 70 75 |ator acc|ept inpu|
|00000680| 74 20 0a 69 6e 74 6f 20 | 61 6e 20 61 72 72 61 79 |t .into |an array|
|00000690| 20 6f 66 20 69 6e 74 73 | 2e 20 20 54 68 65 20 6f | of ints|. The o|
|000006a0| 6e 6c 79 20 61 72 72 61 | 79 20 74 68 65 20 3e 3e |nly arra|y the >>|
|000006b0| 20 6f 70 65 72 61 74 6f | 72 20 69 73 20 6f 76 65 | operato|r is ove|
|000006c0| 72 6c 6f 61 64 65 64 20 | 66 6f 72 0a 69 73 20 61 |rloaded |for.is a|
|000006d0| 6e 20 61 72 72 61 79 20 | 6f 66 20 63 68 61 72 2e |n array |of char.|
|000006e0| 20 54 68 65 20 69 6c 6c | 65 67 61 6c 20 73 74 72 | The ill|egal str|
|000006f0| 75 63 74 75 72 65 20 65 | 72 72 6f 72 20 69 73 20 |ucture e|rror is |
|00000700| 63 61 75 73 65 64 20 62 | 79 20 61 74 74 65 6d 70 |caused b|y attemp|
|00000710| 74 69 6e 67 0a 74 6f 20 | 75 73 65 20 61 6e 20 61 |ting.to |use an a|
|00000720| 72 72 61 79 20 77 68 65 | 72 65 20 74 68 65 20 63 |rray whe|re the c|
|00000730| 6f 6d 70 69 6c 65 72 20 | 69 73 20 65 78 70 65 63 |ompiler |is expec|
|00000740| 74 69 6e 67 20 6f 6e 6c | 79 20 61 20 73 69 6e 67 |ting onl|y a sing|
|00000750| 6c 65 20 69 6e 74 2e 20 | 20 54 68 65 20 0a 63 6f |le int. | The .co|
|00000760| 6d 70 69 6c 65 72 20 77 | 6f 75 6c 64 20 61 63 63 |mpiler w|ould acc|
|00000770| 65 70 74 0a 20 20 20 63 | 69 6e 20 3e 3e 20 61 64 |ept. c|in >> ad|
|00000780| 64 72 2e 7a 69 70 5b 30 | 5d 3b 0a 62 75 74 20 74 |dr.zip[0|];.but t|
|00000790| 68 69 73 20 77 6f 75 6c | 64 6e 27 74 20 67 69 76 |his woul|dn't giv|
|000007a0| 65 20 79 6f 75 20 74 68 | 65 20 72 65 73 75 6c 74 |e you th|e result|
|000007b0| 73 20 79 6f 75 20 61 72 | 65 20 65 78 70 65 63 74 |s you ar|e expect|
|000007c0| 69 6e 67 2e 0a 0a 54 6f | 20 66 69 78 20 74 68 65 |ing...To| fix the|
|000007d0| 20 70 72 6f 62 6c 65 6d | 2c 20 79 6f 75 20 6e 65 | problem|, you ne|
|000007e0| 65 64 20 74 6f 20 63 68 | 61 6e 67 65 20 79 6f 75 |ed to ch|ange you|
|000007f0| 72 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 73 20 6f |r declar|ations o|
|00000800| 66 20 74 68 65 20 7a 69 | 70 5b 5d 20 61 6e 64 0a |f the zi|p[] and.|
|00000810| 70 68 6f 6e 65 5b 5d 20 | 74 6f 20 74 79 70 65 20 |phone[] |to type |
|00000820| 63 68 61 72 2c 20 6f 72 | 20 63 68 61 6e 67 65 20 |char, or| change |
|00000830| 79 6f 75 72 20 6d 65 74 | 68 6f 64 20 6f 66 20 69 |your met|hod of i|
|00000840| 6e 70 75 74 20 74 6f 20 | 61 6c 6c 6f 77 20 77 72 |nput to |allow wr|
|00000850| 69 74 69 6e 67 20 0a 65 | 61 63 68 20 64 69 67 69 |iting .e|ach digi|
|00000860| 74 20 6f 66 20 74 68 65 | 20 7a 69 70 20 61 6e 64 |t of the| zip and|
|00000870| 20 70 68 6f 6e 65 20 74 | 6f 20 64 69 66 66 65 72 | phone t|o differ|
|00000880| 65 6e 74 20 65 6c 65 6d | 65 6e 74 73 20 6f 66 20 |ent elem|ents of |
|00000890| 74 68 65 20 61 72 72 61 | 79 73 2e 0a 49 74 20 77 |the arra|ys..It w|
|000008a0| 6f 75 6c 64 20 70 72 6f | 62 61 62 6c 79 20 62 65 |ould pro|bably be|
|000008b0| 20 62 65 74 74 65 72 20 | 74 6f 20 6a 75 73 74 20 | better |to just |
|000008c0| 63 68 61 6e 67 65 20 74 | 68 65 20 64 61 74 61 20 |change t|he data |
|000008d0| 74 79 70 65 73 20 75 6e | 6c 65 73 73 20 79 6f 75 |types un|less you|
|000008e0| 20 61 72 65 20 0a 67 6f | 69 6e 67 20 74 6f 20 62 | are .go|ing to b|
|000008f0| 65 20 64 6f 69 6e 67 20 | 73 6f 6d 65 20 61 72 69 |e doing |some ari|
|00000900| 74 68 6d 61 74 69 63 20 | 6f 6e 20 74 68 65 20 7a |thmatic |on the z|
|00000910| 69 70 20 63 6f 64 65 20 | 6f 72 20 70 68 6f 6e 65 |ip code |or phone|
|00000920| 20 6e 75 6d 62 65 72 20 | 28 74 68 69 73 0a 69 73 | number |(this.is|
|00000930| 20 6e 6f 74 20 75 73 75 | 61 6c 6c 79 20 64 6f 6e | not usu|ally don|
|00000940| 65 29 2e 0a 0a 3e 50 61 | 6d 0a 3e 0a 3e 0a 0a 0a |e)...>Pa|m.>.>...|
|00000950| 2d 2d 20 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |-- .****|********|
|00000960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000980| 2a 2a 2a 0a 42 72 69 61 | 6e 20 48 69 62 62 65 72 |***.Bria|n Hibber|
|00000990| 74 20 20 62 5f 68 69 62 | 62 65 72 74 40 63 73 63 |t b_hib|bert@csc|
|000009a0| 33 32 2e 65 6e 65 74 2e | 64 65 63 2e 63 6f 6d 0a |32.enet.|dec.com.|
|000009b0| 44 69 67 69 74 61 6c 20 | 45 71 75 69 70 6d 65 6e |Digital |Equipmen|
|000009c0| 74 20 43 6f 72 70 6f 72 | 61 74 69 6f 6e 0a 41 6c |t Corpor|ation.Al|
|000009d0| 6c 20 6f 70 69 6e 69 6f | 6e 73 20 65 78 70 72 65 |l opinio|ns expre|
|000009e0| 73 73 65 64 20 61 72 65 | 20 6d 79 20 6f 77 6e 20 |ssed are| my own |
|000009f0| 61 6e 64 20 73 68 6f 75 | 6c 64 0a 6e 6f 74 20 62 |and shou|ld.not b|
|00000a00| 65 20 61 73 73 75 6d 65 | 64 20 74 6f 20 62 65 20 |e assume|d to be |
|00000a10| 74 68 65 20 6f 70 69 6e | 69 6f 6e 20 6f 66 20 6d |the opin|ion of m|
|00000a20| 79 20 65 6d 70 6c 6f 79 | 65 72 0a 0a 0a |y employ|er... |
+--------+-------------------------+-------------------------+--------+--------+